import time
import requests
import json

class TInput:
    def __init__(self) -> None: 
        self.config = {
            "srcUrl":{
                "real":"http://123.234.35.141:1008/ashx/dataManage/HCInterface.ashx?action=getNewData&datatype=minute" ,
                "his":""
            },
            "dbUrl":"",
        } 
        self.data = "aaa"
        print('input sd port-data')
    def getRealData(self ):
        dataUrl = self.config["srcUrl"]["real"]
        r = requests.get(dataUrl)
        res= r.json()["realDatas"]
        print(res)
    def writeData(self , data):
        print(data)
print(time)
input = TInput()
input.getRealData()